package base.model;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wuhui on 2016/8/4.
 */
@Data
public final  class Header {

    private int crcCode =0xabef0101;

    private int length=10;//消息长度

    private long sessionId;//会话id

    private byte type;//消息类型

    private byte priority;//消息优先级

    private Map<String ,Object> attachment = new HashMap<>();//消息头附件

}
